/**
*@ClassName: DynamicDataSource
*@Description
*@Author maozhi
*@Date 2021/3/22
*@Time 15:02
*/

package com.universityJob.datasource.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * 多数据源
 *
 *
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicContextHolder.peek();
    }

}
